package com.shanjupay.merchant.feign;

import com.shanjupay.merchant.api.dto.MerchantDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "merchant-service")
@RequestMapping("merchant")
public interface MerchantFeign {

    @PostMapping("registerMerchant")
    public MerchantDTO registerMerchant(@RequestBody MerchantDTO merchantDTO);
}
